\hypertarget{class_generic_top_k_list}{
\section{GenericTopKList$<$ T, GreaterThan $>$ Class Template Reference}
\label{class_generic_top_k_list}\index{GenericTopKList@{GenericTopKList}}
}


A list that maintains top K elements.  




{\ttfamily \#include $<$GenericTopKList.h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_generic_top_k_list_a18a193d1dfb006dcf3bdbde105a8838a}{GenericTopKList} (size\_\-t K\_\-=10)
\item 
virtual \hyperlink{class_generic_top_k_list_aed78c2fb73928c49c69deec86d8233d2}{$\sim$GenericTopKList} ()
\item 
void \hyperlink{class_generic_top_k_list_a6ab837a0bcd3f93a543f2cf6a6bc2ce3}{push} (T elem)
\item 
T \hyperlink{class_generic_top_k_list_a5ad239650c74d5545d24123ea181728e}{top} ()
\item 
void \hyperlink{class_generic_top_k_list_a0d65002433e3b2707c6966c3c86b9bbb}{pop} ()
\item 
bool \hyperlink{class_generic_top_k_list_aaab77d173b58c924ea81bb5c8fead8d5}{empty} ()
\item 
void \hyperlink{class_generic_top_k_list_a055c25c654e83e69b7db1f3247b169a3}{print} (ostream \&out)
\item 
void \hyperlink{class_generic_top_k_list_a98580415dbb972ff050d31f16cfa6298}{clear} ()
\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$class T, class GreaterThan$>$ class GenericTopKList$<$ T, GreaterThan $>$}

A list that maintains top K elements. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_generic_top_k_list_a18a193d1dfb006dcf3bdbde105a8838a}{
\index{GenericTopKList@{GenericTopKList}!GenericTopKList@{GenericTopKList}}
\index{GenericTopKList@{GenericTopKList}!GenericTopKList@{GenericTopKList}}
\subsubsection[{GenericTopKList}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T , class GreaterThan $>$ {\bf GenericTopKList}$<$ T, GreaterThan $>$::{\bf GenericTopKList} (size\_\-t {\em K\_\-} = {\ttfamily 10})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{class_generic_top_k_list_a18a193d1dfb006dcf3bdbde105a8838a}
\hypertarget{class_generic_top_k_list_aed78c2fb73928c49c69deec86d8233d2}{
\index{GenericTopKList@{GenericTopKList}!$\sim$GenericTopKList@{$\sim$GenericTopKList}}
\index{$\sim$GenericTopKList@{$\sim$GenericTopKList}!GenericTopKList@{GenericTopKList}}
\subsubsection[{$\sim$GenericTopKList}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T , class GreaterThan $>$ virtual {\bf GenericTopKList}$<$ T, GreaterThan $>$::$\sim${\bf GenericTopKList} ()\hspace{0.3cm}{\ttfamily  \mbox{[}inline, virtual\mbox{]}}}}
\label{class_generic_top_k_list_aed78c2fb73928c49c69deec86d8233d2}


\subsection{Member Function Documentation}
\hypertarget{class_generic_top_k_list_a98580415dbb972ff050d31f16cfa6298}{
\index{GenericTopKList@{GenericTopKList}!clear@{clear}}
\index{clear@{clear}!GenericTopKList@{GenericTopKList}}
\subsubsection[{clear}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T , class GreaterThan $>$ void {\bf GenericTopKList}$<$ T, GreaterThan $>$::clear ()\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{class_generic_top_k_list_a98580415dbb972ff050d31f16cfa6298}
\hypertarget{class_generic_top_k_list_aaab77d173b58c924ea81bb5c8fead8d5}{
\index{GenericTopKList@{GenericTopKList}!empty@{empty}}
\index{empty@{empty}!GenericTopKList@{GenericTopKList}}
\subsubsection[{empty}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T , class GreaterThan $>$ bool {\bf GenericTopKList}$<$ T, GreaterThan $>$::empty ()\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{class_generic_top_k_list_aaab77d173b58c924ea81bb5c8fead8d5}
\hypertarget{class_generic_top_k_list_a0d65002433e3b2707c6966c3c86b9bbb}{
\index{GenericTopKList@{GenericTopKList}!pop@{pop}}
\index{pop@{pop}!GenericTopKList@{GenericTopKList}}
\subsubsection[{pop}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T , class GreaterThan $>$ void {\bf GenericTopKList}$<$ T, GreaterThan $>$::pop ()\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{class_generic_top_k_list_a0d65002433e3b2707c6966c3c86b9bbb}
\hypertarget{class_generic_top_k_list_a055c25c654e83e69b7db1f3247b169a3}{
\index{GenericTopKList@{GenericTopKList}!print@{print}}
\index{print@{print}!GenericTopKList@{GenericTopKList}}
\subsubsection[{print}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T , class GreaterThan $>$ void {\bf GenericTopKList}$<$ T, GreaterThan $>$::print (ostream \& {\em out})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{class_generic_top_k_list_a055c25c654e83e69b7db1f3247b169a3}
\hypertarget{class_generic_top_k_list_a6ab837a0bcd3f93a543f2cf6a6bc2ce3}{
\index{GenericTopKList@{GenericTopKList}!push@{push}}
\index{push@{push}!GenericTopKList@{GenericTopKList}}
\subsubsection[{push}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T , class GreaterThan $>$ void {\bf GenericTopKList}$<$ T, GreaterThan $>$::push (T {\em elem})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{class_generic_top_k_list_a6ab837a0bcd3f93a543f2cf6a6bc2ce3}
\hypertarget{class_generic_top_k_list_a5ad239650c74d5545d24123ea181728e}{
\index{GenericTopKList@{GenericTopKList}!top@{top}}
\index{top@{top}!GenericTopKList@{GenericTopKList}}
\subsubsection[{top}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T , class GreaterThan $>$ T {\bf GenericTopKList}$<$ T, GreaterThan $>$::top ()\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{class_generic_top_k_list_a5ad239650c74d5545d24123ea181728e}


The documentation for this class was generated from the following file:\begin{DoxyCompactItemize}
\item 
src/commons/TopicLearner/\hyperlink{_generic_top_k_list_8h}{GenericTopKList.h}\end{DoxyCompactItemize}
